home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C++ / Libraries / RgnMaster 1.0 / RgnMaster.π.rsrc / RgnMaster.π.rsrc.rsrc / TEXT_128_Help.txt < prev    next >
Encoding:
Text File  |  1994-04-25  |  8.2 KB  |  82 lines

  1.                                                                                     RgnMaster 1.0
  2.  
  3.  
  4.                                                                                                                                                                                         Region Creation Utility
  5.                                                                                                 Free! Free, I Say!!!
  6.                                                                                     Courtesy of 3G Software
  7.  
  8.                                     Written by Hiep Dam in the Symantec C++ 6.0.1 environment.
  9.            (Pretty good by the way, but looks like MetroWerks is upping the ante)
  10.                                             Copyright ¬©1994 by Hiep Dam, All Rights Reserved.
  11.  
  12.  
  13.                                                                 Contacting Hiep Dam and 3G Software:
  14.  
  15.                                                                                 2226 Parkside Avenue #302
  16.                                                                                 Los Angeles, CA  90031
  17.                                                                                 USA
  18.  
  19.                                                                                 America Online: StarLabs
  20.                                       Internet: starlabs@aol.com
  21.  
  22.  
  23.                                                                             Special Thanks to Dana Basken
  24.  
  25.  
  26.  
  27.  
  28. ‚Ä¢ Distribution Information
  29. ---------------------------------------------
  30. * Cost:
  31. RgnMaster is absolutely ‚Äúgratis‚Äù. Feel free to distribute RgnMaster to anyone you want. However, I would appreciate it if you would send me any routines and techniques you want to get off your chest (anything to do with games in particular, especially animation, would be greeted with kneeling and bowing and a few "I‚Äôm not worthy!" chants from the author). Correspondence is always welcomed from any and all.
  32.  
  33. * Distribution Method:
  34. As mentioned previously, distribute RgnMaster to anyone you want. However, you must include all of the bundled files that came with RgnMaster. This means including the source code along with the RgnMaster application!
  35.  
  36.  
  37. ‚Ä¢ Requirements
  38. ---------------------------------------------
  39.             RgnMaster requires System 7.x or later to run. However, if you really want System 6.0.x compatibility (come on! get with the program!) then you can modify the source code, but don‚Äôt distribute your modifications without my permission first.
  40.             Only one little change required: the program uses System 7-specific FSSpec‚Äôs and StandardFileReply‚Äôs when saving a region to a file; you can change this to your older System 6.0.x SFReply.
  41.             Note: RgnMaster uses _BitMapToRegion() to do the actual region creation; I‚Äôm not sure, but this trap may not be available prior to System 7. If this is so, then you‚Äôre out of luck (that or create your own picture-to-region conversion routine).
  42.  
  43.  
  44. ‚Ä¢ What Is It? What Does It Do?
  45. ---------------------------------------------
  46. * Why:
  47.             Good question. From my experience, regions are usually created and used on-the-fly. For most purposes this is fine. However, there may be times when you need a lot of regions, and creating them on the fly may be too burdensome. The answer: create them first and save them as resources, and then use them as you would use any other resource. Most applications will never have to do this, but games in particular may need a region-creation utility. I noticed there is no standard way when it comes to handling regions as resources, and there wasn‚Äôt any region utilities that catered to my specific needs. So RgnMaster was born.
  48.  
  49. * How:
  50.             To create a region, first make a mask that the region will be based on. This is a picture (your standard "PICT"), preferably black and white. The areas in black in your mask picture will be parts of the region. Color pictures are OK, but they‚Äôre converted to black and white before conversion anyway.
  51.             After creating your mask picture, copy it to the clipboard. Then launch RgnMaster or switch to it if you‚Äôre already running it. Then click on ‚ÄúConvert & Replace‚Äù or ‚ÄúConvert Only‚Äù.
  52.             ‚ÄúConvert &  Replace‚Äù converts the picture on the clipboard to a region, and puts the region back onto the clipboard. Whatever picture was on the clipboard previously is replaced. Now you can switch to ResEdit or the like and paste the region into anything you desire. ‚ÄúConvert Only‚Äù does just that; it doesn‚Äôt place the region on the clipboard, but keeps the region private to itself. You would use this if you want to place the region into RgnMaster or another file without pasting it in manually (via ResEdit).
  53.  
  54. * Some Notes:
  55.             You can view your copied picture that's on the clipboard. Select Edit->Show Clipboard. Click anywhere (or press any key) to make it go away.
  56.             After conversion, you can view your region. Click on the ‚ÄúView Region...‚Äù button; the region is filled in black. Click anywhere to make the preview go away.
  57.             By default, regions are of resource type "Rgn " (note the extra space at the end). You can change this either by selecting File->Options... or clicking on the Options... button. Or you can change the resource type upon saving the region to RgnMaster or to another file. When saving, you will be prompted for the region resource type and region name; the resource type that you specify applies to that region only‚Äîyou're not changing the default region resource type. Note that resource types must be exactly four letters/characters long.
  58.  
  59. * Automatic Region Offsetting to 0, 0:
  60.             If your mask picture isn‚Äôt flushed top and left (i.e. the actual image is not touching the left and/or top side), then the region won‚Äôt be flushed topleft either. Most of the times this isn‚Äôt what you want‚Äîat least it‚Äôs not what I want‚Äîso RgnMaster automatically offsets the region so that its topleft corner will be at 0, 0. If you don‚Äôt want RgnMaster to offset the region automagically for you, keep down the option key when "Convert & Replacing" or "Converting Only". I would have put this in as a checkbox option, but I ran out of screen space!!
  61.  
  62.  
  63. Yep that‚Äôs it. RgnMaster is pretty simple and single-minded in its purpose and goal: picture to region conversion. I hope you find this utility and/or the source code useful. And if you find any of the above text confusing, sorry. But just experiment with the program-it‚Äôs pretty simple and you can‚Äôt do any wrong. Live long and prosper.
  64.  
  65.  
  66.  
  67. ‚Ä¢ Yeah, it's me mouthing off again
  68. ---------------------------------------------
  69.             This section is reserved for my peanut gallery comments. I suggest you don‚Äôt read this stuff if your time is precious. Otherwise if you're just vegging around, read on. All of the below are of my own opinions and are not representative of programmers, UCLA students, crazed psychotics, or Macintosh game designers. The usual disclaimer stuff.
  70.  
  71.              First, something about me (just in case you're wondering what kind of guy writes stuff like this). I‚Äôm currently enrolled at UCLA as an undergraduate and I‚Äôll be graduating in about a year. I‚Äôm majoring in Psychobiology, which it turns out, can be quite interesting. Programming is a hobby that I do to pass the time‚Äîotherwise I have no life. Don‚Äôt ask me what I plan to do after graduation. I‚Äôve been trying to decide these past four years! However, if you‚Äôre looking for a guy who loves to design games and who‚Äôs willing to learn and self-teach himself any language or skill necessary to help design games, drop me a line!! Or if you‚Äôre looking for a graduate student in behavioral neuropsychology or physiological psychology with extensive experience in Macintosh programming, feel free to call too! Alright, enough self-plug!
  72.  
  73.             Yanni Plug: I‚Äôve recently discovered Yanni and I love it! I never thought I would be a Yanni fan, but watching Yanni Live At The Acropolis on PBS made me an instant convert. Get your copy of Yanni today! Great new age music.
  74.  
  75.             I first got into programming after my brother bought a Mac SE in ‚Äô86. Boy, that seems just like yesterday. Anyway, I first dabbled in HyperCard and HyperTalk, moved onto Pascal for a few years, and then graduated to C++. Most of my experience was self-taught; the latter C++ years I took courses here at UCLA in programming. I currently use a Mac IIsi to do my Macintosh black magic...
  76.  
  77.             What I do is write games. My first completed project was Concentroids 1.0, released June 1993. Mainly your concentrations/memory game taken to the extreme, with animation, sound, and music. About 1.1 MB in size, I believe. It was programmed in Think Pascal, but due to a freak of nature (and my stupidity) the source code is forever lost. I‚Äôm working on Concentroids 2.0, which will blow the prior version out of the water. Probably available by Summer '94. Write to me if you‚Äôre interested in my games.
  78.  
  79. ---------------------------------------------
  80.  
  81. Anyway, if you have any rebukes or comments I would love to hear from you. You can reach me at America Online at StarLabs (that or old-fashioned snail mail).
  82.